import normalize        from "./core/normalize";
import {processGeoJSON} from "./mapshaper/index";

window.Van = window.Van || {};
window.Van.GeoLand = window.Van.GeoLand || {};

window.Van.GeoLand.formatGeoJSON = function (origin, opts, callback) {
    processGeoJSON(origin, opts, function ({all, combine}) {
        callback({
            all: normalize(all, opts),
            combine: normalize(combine, opts)
        })
    });
};